package com.chinanet.oracle.entry;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

@Entity
@Table(name = "MONITOR_ROLE_PERMISSION")
public class RolePermission implements Serializable {
    @Id
    @Column(name = "ID")
    private BigDecimal id;

    @ManyToOne
    @JoinColumn(name = "ROLEID")
    private Role role;
    @ManyToOne
    @JoinColumn(name = "PERMISSIONID")
    private Permission permissin;

}
